package cn.com.farsgiht.bluetoothdemo.author;


import cn.com.farsgiht.bluetoothdemo.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.view.Window;
import android.view.WindowManager;


public class jcl extends Activity {
	private static final int SEND_MESSAGE_AND_CLOSE_WINDOW=0;
	private static final int MSG_ID_CLOSE=1;
		@Override
		protected void onCreate(Bundle savedInstanceState) {
			super.onCreate(savedInstanceState);
			requestWindowFeature(Window.FEATURE_NO_TITLE);
			getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);	
			//设置广告界面
			setContentView(R.layout.activity_my);
			//handler.sendEmptyMessageDelayed( SEND_MESSAGE_AND_CLOSE_WINDOW, 2600);
		} 
	private Handler handler=new Handler(){
		public void handleMessage (Message msg){
			switch (msg.what) {
			case SEND_MESSAGE_AND_CLOSE_WINDOW:
				startMenuActivity();
				handler.sendEmptyMessageDelayed(MSG_ID_CLOSE,1000);
				super.handleMessage(msg);
			case MSG_ID_CLOSE:
				finish();
				break;
			default:
				break;
			}
		}
	};
	private void startMenuActivity(){
/*	     Intent intent	=new Intent(this,MainActivity.class);
	     this.startActivity(intent);*/
	}
}


